package br.com.gerentefutebol;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class HomeActivity extends Activity {
	
	public Button newGame, loadGame;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.home);
        
        newGame = (Button) findViewById(R.id.new_game);
        loadGame = (Button) findViewById(R.id.load_game);
    }
    
    @Override
    protected void onResume() {
    	newGame.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(HomeActivity.this, TelaPrincipal.class);
				startActivity(intent);				
			}
		});
    	
    	super.onResume();
    }
}